package com.framework.modules.dataview.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.common.utils.PageUtils;
import com.framework.common.utils.Query;
import com.framework.modules.dataview.dao.ViewChatFriendInfoListDao;
import com.framework.modules.dataview.entity.ViewChatFriendInfoListEntity;
import com.framework.modules.dataview.service.ViewChatFriendInfoListService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("viewChatFriendInfoListService")
public class ViewChatFriendInfoListServiceImpl extends ServiceImpl<ViewChatFriendInfoListDao, ViewChatFriendInfoListEntity> implements ViewChatFriendInfoListService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<ViewChatFriendInfoListEntity> page = this.selectPage(
                new Query<ViewChatFriendInfoListEntity>(params).getPage(),
                new EntityWrapper<ViewChatFriendInfoListEntity>()
        );

        return new PageUtils(page);
    }

}
